package com.xzssmk.leisure.x.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PeriodSpotExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeriodSpotExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeriodSpotIdIsNull() {
            addCriterion("period_spot_id is null");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdIsNotNull() {
            addCriterion("period_spot_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdEqualTo(Integer value) {
            addCriterion("period_spot_id =", value, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdNotEqualTo(Integer value) {
            addCriterion("period_spot_id <>", value, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdGreaterThan(Integer value) {
            addCriterion("period_spot_id >", value, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("period_spot_id >=", value, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdLessThan(Integer value) {
            addCriterion("period_spot_id <", value, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdLessThanOrEqualTo(Integer value) {
            addCriterion("period_spot_id <=", value, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdIn(List<Integer> values) {
            addCriterion("period_spot_id in", values, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdNotIn(List<Integer> values) {
            addCriterion("period_spot_id not in", values, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdBetween(Integer value1, Integer value2) {
            addCriterion("period_spot_id between", value1, value2, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andPeriodSpotIdNotBetween(Integer value1, Integer value2) {
            addCriterion("period_spot_id not between", value1, value2, "periodSpotId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdIsNull() {
            addCriterion("issue_period_id is null");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdIsNotNull() {
            addCriterion("issue_period_id is not null");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdEqualTo(Integer value) {
            addCriterion("issue_period_id =", value, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdNotEqualTo(Integer value) {
            addCriterion("issue_period_id <>", value, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdGreaterThan(Integer value) {
            addCriterion("issue_period_id >", value, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("issue_period_id >=", value, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdLessThan(Integer value) {
            addCriterion("issue_period_id <", value, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdLessThanOrEqualTo(Integer value) {
            addCriterion("issue_period_id <=", value, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdIn(List<Integer> values) {
            addCriterion("issue_period_id in", values, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdNotIn(List<Integer> values) {
            addCriterion("issue_period_id not in", values, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdBetween(Integer value1, Integer value2) {
            addCriterion("issue_period_id between", value1, value2, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andIssuePeriodIdNotBetween(Integer value1, Integer value2) {
            addCriterion("issue_period_id not between", value1, value2, "issuePeriodId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdIsNull() {
            addCriterion("scenic_spot_id is null");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdIsNotNull() {
            addCriterion("scenic_spot_id is not null");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdEqualTo(Integer value) {
            addCriterion("scenic_spot_id =", value, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdNotEqualTo(Integer value) {
            addCriterion("scenic_spot_id <>", value, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdGreaterThan(Integer value) {
            addCriterion("scenic_spot_id >", value, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("scenic_spot_id >=", value, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdLessThan(Integer value) {
            addCriterion("scenic_spot_id <", value, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdLessThanOrEqualTo(Integer value) {
            addCriterion("scenic_spot_id <=", value, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdIn(List<Integer> values) {
            addCriterion("scenic_spot_id in", values, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdNotIn(List<Integer> values) {
            addCriterion("scenic_spot_id not in", values, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdBetween(Integer value1, Integer value2) {
            addCriterion("scenic_spot_id between", value1, value2, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andScenicSpotIdNotBetween(Integer value1, Integer value2) {
            addCriterion("scenic_spot_id not between", value1, value2, "scenicSpotId");
            return (Criteria) this;
        }

        public Criteria andSplitPatternIsNull() {
            addCriterion("split_pattern is null");
            return (Criteria) this;
        }

        public Criteria andSplitPatternIsNotNull() {
            addCriterion("split_pattern is not null");
            return (Criteria) this;
        }

        public Criteria andSplitPatternEqualTo(Byte value) {
            addCriterion("split_pattern =", value, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternNotEqualTo(Byte value) {
            addCriterion("split_pattern <>", value, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternGreaterThan(Byte value) {
            addCriterion("split_pattern >", value, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternGreaterThanOrEqualTo(Byte value) {
            addCriterion("split_pattern >=", value, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternLessThan(Byte value) {
            addCriterion("split_pattern <", value, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternLessThanOrEqualTo(Byte value) {
            addCriterion("split_pattern <=", value, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternIn(List<Byte> values) {
            addCriterion("split_pattern in", values, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternNotIn(List<Byte> values) {
            addCriterion("split_pattern not in", values, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternBetween(Byte value1, Byte value2) {
            addCriterion("split_pattern between", value1, value2, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitPatternNotBetween(Byte value1, Byte value2) {
            addCriterion("split_pattern not between", value1, value2, "splitPattern");
            return (Criteria) this;
        }

        public Criteria andSplitIsNull() {
            addCriterion("split is null");
            return (Criteria) this;
        }

        public Criteria andSplitIsNotNull() {
            addCriterion("split is not null");
            return (Criteria) this;
        }

        public Criteria andSplitEqualTo(Byte value) {
            addCriterion("split =", value, "split");
            return (Criteria) this;
        }

        public Criteria andSplitNotEqualTo(Byte value) {
            addCriterion("split <>", value, "split");
            return (Criteria) this;
        }

        public Criteria andSplitGreaterThan(Byte value) {
            addCriterion("split >", value, "split");
            return (Criteria) this;
        }

        public Criteria andSplitGreaterThanOrEqualTo(Byte value) {
            addCriterion("split >=", value, "split");
            return (Criteria) this;
        }

        public Criteria andSplitLessThan(Byte value) {
            addCriterion("split <", value, "split");
            return (Criteria) this;
        }

        public Criteria andSplitLessThanOrEqualTo(Byte value) {
            addCriterion("split <=", value, "split");
            return (Criteria) this;
        }

        public Criteria andSplitIn(List<Byte> values) {
            addCriterion("split in", values, "split");
            return (Criteria) this;
        }

        public Criteria andSplitNotIn(List<Byte> values) {
            addCriterion("split not in", values, "split");
            return (Criteria) this;
        }

        public Criteria andSplitBetween(Byte value1, Byte value2) {
            addCriterion("split between", value1, value2, "split");
            return (Criteria) this;
        }

        public Criteria andSplitNotBetween(Byte value1, Byte value2) {
            addCriterion("split not between", value1, value2, "split");
            return (Criteria) this;
        }

        public Criteria andLimitTimesIsNull() {
            addCriterion("limit_times is null");
            return (Criteria) this;
        }

        public Criteria andLimitTimesIsNotNull() {
            addCriterion("limit_times is not null");
            return (Criteria) this;
        }

        public Criteria andLimitTimesEqualTo(Byte value) {
            addCriterion("limit_times =", value, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesNotEqualTo(Byte value) {
            addCriterion("limit_times <>", value, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesGreaterThan(Byte value) {
            addCriterion("limit_times >", value, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesGreaterThanOrEqualTo(Byte value) {
            addCriterion("limit_times >=", value, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesLessThan(Byte value) {
            addCriterion("limit_times <", value, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesLessThanOrEqualTo(Byte value) {
            addCriterion("limit_times <=", value, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesIn(List<Byte> values) {
            addCriterion("limit_times in", values, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesNotIn(List<Byte> values) {
            addCriterion("limit_times not in", values, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesBetween(Byte value1, Byte value2) {
            addCriterion("limit_times between", value1, value2, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andLimitTimesNotBetween(Byte value1, Byte value2) {
            addCriterion("limit_times not between", value1, value2, "limitTimes");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNull() {
            addCriterion("discount is null");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNotNull() {
            addCriterion("discount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEqualTo(Byte value) {
            addCriterion("discount =", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotEqualTo(Byte value) {
            addCriterion("discount <>", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThan(Byte value) {
            addCriterion("discount >", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThanOrEqualTo(Byte value) {
            addCriterion("discount >=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThan(Byte value) {
            addCriterion("discount <", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThanOrEqualTo(Byte value) {
            addCriterion("discount <=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountIn(List<Byte> values) {
            addCriterion("discount in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotIn(List<Byte> values) {
            addCriterion("discount not in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountBetween(Byte value1, Byte value2) {
            addCriterion("discount between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotBetween(Byte value1, Byte value2) {
            addCriterion("discount not between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}